import { createRouter, createWebHashHistory } from 'vue-router'
import Layout from "@/layout/layout.vue"

export const routes = [
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/pages/login/login.vue'),
        hidden: 1
    },
    {
        path: '/',
        component: Layout,
        redirect: '/index',
        children: [{
            path: 'index',
            name: 'Index',
            component: () => import('@/pages/index/index.vue'),
            meta: {
                title: "客户概览"
            },
        }],
        hidden: 0
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
